﻿using Service.Repository;
using SqlSugar;

namespace Service.Auth.Domain.AggregatesModel
{

    /// <summary>
    /// 系统聚合
    /// </summary>
    [SugarTable("tb_system")]
    public class TSystem : Entity<long>
    {
        public TSystem()
        {
        }

        public TSystem(string systemName, string clientId, string remarks, string secretKey)
        {
            SystemName = systemName;
            ClientId = clientId;
            Remarks = remarks;
            SecretKey = secretKey;
        }

        /// <summary>
        /// 系统名称
        /// </summary>
        ///         
        [SugarColumn(ColumnName = "system_name")]
        public string SystemName { get; set; }

        /// <summary>
        /// 系统编号
        /// </summary>
        [SugarColumn(ColumnName = "client_id")]
        public string ClientId { get; private set; }

        /// <summary>
        /// 系统备注
        /// </summary>
        [SugarColumn(ColumnName = "remarks")]
        public string Remarks { get; private set; }

        /// <summary>
        /// 系统来源
        /// </summary>
        [SugarColumn(ColumnName = "domain")]
        public string Domain { get; private set; }


        /// <summary>
        /// 系统授权码
        /// </summary>
        [SugarColumn(ColumnName = "secret_key")]
        public string SecretKey { get; private set; }
    }
}
